package core.communication.message;

import core.communication.Direction;
import core.database.MessageType;

public class VoteConfirmationMessage extends Message {
	private static final long serialVersionUID = 1L;

	private String token = null;
	private Boolean approved = null;
	
	public VoteConfirmationMessage(String token, String destinationURI, Boolean approved) {
		super();
		setPriority(MessagePriority.HIGH);
		setMessageType(MessageType.VoteConfirmation);
		setDirection(Direction.DOWN);
		setDestinationURI(destinationURI);
		addToPath(destinationURI);
		setToken(token);
		setApproved(approved);
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public Boolean getApproved() {
		return approved;
	}

	public void setApproved(Boolean approved) {
		this.approved = approved;
	}

}
